<template>
	<view class="nodata"><image src="" mode=""></image></view>
</template>
<template>
	<view class="warp">
		<view class="box">
			<block v-for="(item,index) in noList" :key="index">
				<image v-if="notype==item.no" :src="item.image" mode="widthFix"></image>
			</block>
		</view>
	</view>
</template>

<script>
	/**
	 * notype:默认1 暂无数据
	 * 2、暂无货源
	 * 3、暂无消息
	 * */ 
export default {
	props: {
		notype: {
			type:Number,
			default:1
		}
	},
	data() {
		return {
			noList:[
				{
					image:'https://api.luyiwangluo.com/upload/uniapp/noData/nodata.png',
					no:1
				}
			]
		};
	}
};
</script>

<style lang="scss">
	.warp{
		width: 100%;
		height: 100%;
		.box{
			width: 340rpx;
			height: 290rpx;
			margin:80% 0rpx 0rpx 50%;
			transform: translate(-50%,-50%);
			position: relative;
			z-index: 1;
			image{
				width: 100%;
				height: 100%;
			}
		}
	}
</style>

